package com.study.lagou.edu.service;

import com.study.lagou.edu.service.fallback.EmailServiceClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "sc-service-email", path = "/email", fallback = EmailServiceClientFallback.class)
public interface IEmailServiceClient {

    @GetMapping("/{email}/{code}")
    public Boolean sendMail(@PathVariable("email") String email, @PathVariable("code") String checkCode);
}
